package cn.bob.domain;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author bob
 * @since 2022-11-23
 */
@TableName("t_user_movie")
public class UserMovie extends Model<UserMovie> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("user_id")
    private Long userId;
    @TableField("movie_ticet_id")
    private Long movieTicetId;
    private Integer count;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getMovieTicetId() {
        return movieTicetId;
    }

    public void setMovieTicetId(Long movieTicetId) {
        this.movieTicetId = movieTicetId;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserMovie{" +
        ", id=" + id +
        ", userId=" + userId +
        ", movieTicetId=" + movieTicetId +
        ", count=" + count +
        "}";
    }
}
